import { Module } from '@nestjs/common';
import { PostsController } from './posts.controller';
import { PostsService } from './posts.service';
import { LogModule } from '../log/log.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Posts } from './posts.entity';

@Module({
    imports:[TypeOrmModule.forFeature([ // 这步骤是不能少的
        Posts,
    ]),  LogModule.register('posts')],
    controllers: [PostsController],
    providers: [
        PostsService,
    ]
})
export class PostsModule {
}
